package org.linlinjava.litemall.db.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 收货地址
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_address")
public class Address extends BaseModel{

    @TableField("name")
    private String name;

    @TableField("user_id")
    private Long userId;

    @TableField("province")
    private String province;

    @TableField("city")
    private String city;

    @TableField("county")
    private String county;

    @TableField("address_detail")
    private String addressDetail;

    @TableField("area_code")
    private String areaCode;

    @TableField("postal_code")
    private String postalCode;

    @TableField("tel")
    private String tel;

    @TableField("is_default")
    private Boolean isDefault;

}